package com.xgp.company.创建型模式.第三种_建造者模式.通过静态内部类来实现;

public class Test {
    public static void main(String[] args) {
        //服务员
        Worker worker = new Worker();
        Product product = worker.getProduct();
        System.out.println(product.toString());

        //自定义套餐
        product = worker.buildA("aaa").buildB("bbb").buildC("cccc").buildD("ddd").getProduct();
        System.out.println(product.toString());
    }
}
